package com.lzw.service.impl;

import com.lzw.bean.User;
import com.lzw.mapper.LoginMapper;
import com.lzw.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.security.util.Password;

/**
 * @auther: lzw
 * @date: 2021/9/25 - 09 - 25 - 20:33
 * @Description: com.lzw.service.impl
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;

    @Override
    public User login(String username, String password) {
        return loginMapper.getUser(username, password);
    }
}
